package com.iengoo.freshdrp.ctrl;

import com.iengoo.freshdrp.service.entity.Goods;
import com.iengoo.freshdrp.service.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-06-11 17:12
 */

@Controller
@RequestMapping("/goods")
public class GoodsController {
    @Autowired
    private GoodsService goodsService;

    @PostMapping
    public String create(Goods goods) {
        goodsService.create(goods);
        return "success";
    }
}
